<template>
  <div>
    <h1>我是App组件</h1>
    {{ count }}
    <hr />
    <Child @changeCount="changeCount" />
  </div>
</template>

<script>
import Child from "./components/Child.vue";
export default {
  name: "App",
  components: { Child },
  data() {
    return {
      count: 3,
    };
  },
  methods: {
    changeCount(value) {
      // console.log(value);
      this.count += 3;
    },
  },
};
</script>

<style>
</style>